class Design {
    constructor(type) {
        if (type === "container") {
            return [...this.container(), this.layout()]
        }

    }
    // 容器表单属性设置
    container() {
        return [
            { type: "input", label: "宽度", value: "width" },
            { type: "input", label: "高度", value: "height" },
        ]
    }
    // 布局属性设置
    layout() {
        return {
            type: "select",
            label: "布局方式",
            value: "flex",
            options: [
                { label: "横向布局", value: "row" },
                { label: "纵向布局", value: "col" },
                { label: "两端对齐", value: "between" },
                { label: "纵向两端对齐", value: "col-between" },
            ]
        }
    }
}

export default Design